<div id="content">
    <form action="{:U('Manage/updata/id/'.$data[id])}" method="post">
        <div class="modal-body">
            <p>
                姓    名(登录账号)：<input type="text" size="30" name="name" value="{$data.name}"/>
            </p>
            <p>
                密    码：<input type="text" size="30" name="password" value="{$data.password}"/>
            </p>
            <p>
            <div class="row-fluid">
                <div class="span12">
                    <div class="widget-box">
                        <div class="widget-title">
                                        <span class="icon">
                                            <input type="checkbox" id="title-checkbox" name="title-checkbox" />
                                        </span>
                            <h5>权限划分</h5>
                        </div>
                        <div class="widget-content">
                            <table class="table table-bordered table-striped with-check" id="ManageUpdataTable">
                                <thead>
                                <tr>
                                    <th>模块</th>
                                    <th>添</th>
                                    <th>删</th>
                                    <th>改</th>
                                    <th>查</th>
                                    <th>特殊一</th>
                                    <th>特殊二</th>
                                    <th>特殊三</th>
                                </tr>
                                </thead>

                                <tbody>
                                <tr>
                                    <td>商品</td>
                                    <td><input type="checkbox" value="Goods/addGoods" name="auth[]"></td>
                                    <td><input type="checkbox" value="Goods/delGoods" name="auth[]"></td>
                                    <td><input type="checkbox" value="Goods/updataGoods" name="auth[]"></td>
                                    <td><input type="checkbox" value="Goods/index" name="auth[]"></td>
                                    <td><input type="checkbox" vallue="Goods/upMoreImg" name="auth[]">多图上传</td>
                                    <td><input type="checkbox" vallue="Goods/delOne" name="auth[]">多图删除</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>栏目</td>
                                    <td><input type="checkbox" value="Cate/addCate" name="auth[]"></td>   <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="Cate/delCate" name="auth[]"></td>
                                    <td></td>
                                    <td><input type="checkbox" value="Cate/addCate" name="auth[]"></td>    <!--查看/添加时在一个页面完成-->
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>订单</td>
                                    <td></td>   <!--查看/添加时在一个页面完成-->
                                    <td></td>
                                    <td></td>
                                    <td><input type="checkbox" value="Order/index" name="auth[]"></td>    <!--查看/添加时在一个页面完成-->
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>后台操作</td>
                                    <td><input type="checkbox" value="Manage/index" name="auth[]"></td>   <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="Manage/delCate" name="auth[]"></td>
                                    <td></td>
                                    <td><input type="checkbox" value="Manage/index" name="auth[]"></td>    <!--查看/添加时在一个页面完成-->
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>商户操作</td>
                                    <td><input type="checkbox" value="BusinessMan/index" name="auth[]"></td>   <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="BusinessMan/delMan" name="auth[]"></td>
                                    <td><input type="checkbox" value="BusinessMan/updataMan" name="auth[]"></td>
                                    <td><input type="checkbox" value="BusinessMan/addMan" name="auth[]"></td>    <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="BusinessMan/restMan" name="auth[]">还原</td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            </p>
        </div>
        <div class="modal-footer">
            <a href="#" class="btn" data-dismiss="modal">Cancel</a>
            <input type="submit" id="add-event-submit" class="btn btn-primary" value="提交">
        </div>
    </form>
</div>
<foreach name="dataAuth" item="ro">
    <script>
        $("input[name='auth[]']").each(
            function(){
                if($(this).val()=="{$ro}")
                {
                    $(this).attr("checked","checked");
                }
            }
        );
    </script>
</foreach>